package com.teacher;

public class MainTest1 {
    public static void main(String[] args) {
        //创建对象，调用对象
        //Dog//类，类型  数据类型；
        //Dog 自定义类型  == 引用类型
        //创对象 dog对象
        Dog dog = new Dog();
        //. 操作符
        dog.name = "旺财";
        dog.age=3;
        dog.color = "黑色";
        dog.sex="公";
        dog.strain = "中华田园犬";
        dog.weight = 10;
        //操作方法
        dog.eat();
        dog.run();
        //如何在创建另一支狗
        //数据类型   对象名
           Dog   dog1 = new Dog();
        dog1.name = "小黑";

        Car car = new Car();
        car.brand = "Tesla";
        car.model = "Mode 3";
        car.color = "黑色";
        car.price = 30;
        car.show();
        car.go();
        car.back();

        Student student= new Student();
        student.name = "zhangsan";
        student.age = 18;
        student.className = "S1";
        student.hobby ="篮球";
        student.print();

        Teacher teacher = new Teacher();
        teacher.name = "王老师";
        teacher.rang(student);

//        Visitors visitors = new Visitors();
//        do{
//            System.out.println("请输入姓名:");
//            Scanner input = new Scanner(System.in);
//            visitors.name = input.next();
//            if(visitors.name.equals("n")){
//                break;
//            }
//            System.out.println("请输入年龄:");
//            visitors.age = input.nextInt();
//            visitors.disPrice();
//        }while (true);

        UserPassword userPassword = new UserPassword();
        userPassword.updUserPwd();
    }
}
